<div id="solvay_content2010">
	<{include file="alumni/public/left_menu.tpl"}>

	<div id="content2010_right">
    <div class="ctn_contentright2010">
      <{include file="alumni/public/top_menu.tpl"}>
      <div class="content_tab">
      	<form name="frmAddAnotherJob" id="frmAddAnotherJob" action="" method="post" onsubmit="return checkFrmAddAnotherJob(this)">
      	<div class="title_contenttab">
        	<table cellpadding="0" cellspacing="0" border="0" width="100%">
          	<tr>
            	<td align="left">past positions</td>
          	</tr>
          </table>
     		</div>
        <div class="text_13" style="color:#FF0000; text-align:center"><{$STR_MSG}></div>
        <div id="id_profile_past_position">
        	<{if $arrListPastPosition}>
        	<{foreach name=namePast key=keyPast item=itemPast from=$arrListPastPosition}>
            <div class="ctn_texttab">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
              	
                <tr>
                  <td width="190" class="text_13">Position title</td>
                    <td class="text_13"><input type="text" name="title[]" id="title[]" class="input2010_300" value="<{$itemPast.title}>" /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Company</td>
                    <td class="text_13_bg"><input type="text" name="company[]" id="company[]" class="input2010_300" value="<{$itemPast.company}>"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Company website</td>
                    <td class="text_13"><input type="text" name="website[]" id="website[]" class="input2010_300" value="<{$itemPast.website}>"  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Industry</td>
                    <td class="text_13_bg">
											<select name="industry_id[]" id="industry_id[]" class="select2010_300">
												<option value="-1"> -- Select Industry -- </option>
												<{foreach name=nameIndus key=keyIndus item=itemIndus from=$array_industry}>
													<option<{if $itemPast.industry_id eq $itemIndus.id}> selected="selected"<{/if}> value="<{$itemIndus.id}>">&nbsp;&nbsp;&nbsp;<{$itemIndus.industry_name}></option>
												<{/foreach}>  
											</select>
										</td>
                </tr>
                 <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">From</td>
                  <td class="text_13">
                    <table cellpadding="0" cellspacing="0" border="0">
                      <tr>
                         <td align="left">
                          <select name="date_from_month[]" id="date_from_month[]" class="select2010_75">
                            <option value="00"> -- Month -- </option>
                            <{section name=foo start=1 loop=13 step=1}>
                              <option<{if $itemPast.date_from|date_format:"%m" eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                            <{/section}>  
                          </select>
                         </td>
                         <td width="5"></td>
                         <td align="left">
                            <select name="date_from_year[]" id="date_from_year[]" class="select2010_75">
                              <option value="0000"> -- Year -- </option>
                              <{section name=foo start=1940 loop=2010 step=1}>
                                <option<{if $itemPast.date_from|date_format:"%Y" eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                              <{/section}>  
                            </select>
                         </td>
                         <td width="20"></td>
                         <td >to</td>
                         <td width="5"></td>
                         <td align="left">
                            <select name="date_to_month[]" id="date_to_month[]" class="select2010_75">
                              <option value="00"> -- Month -- </option>
                              <{section name=foo start=1 loop=13 step=1}>
                                <option<{if $itemPast.date_to|date_format:"%m" eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                              <{/section}>  
                            </select>
                        </td>
                         <td width="5"></td>
                        <td align="left">
                          <select name="date_to_year[]" id="date_to_year[]" class="select2010_75">
                            <option value="0000"> -- Year -- </option>
                            <{section name=foo start=1940 loop=2010 step=1}>
                              <option<{if $itemPast.date_to|date_format:"%Y" eq $smarty.section.foo.index}> selected="selected"<{/if}> value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                            <{/section}> 
                          </select>
                         </td>
                       </tr>
                     </table>
                  </td>
                </tr>
              </table>
            </div>
            <{if !$smarty.foreach.namePast.last}>
            	<div style="height:2px; background-color:#FFD5AA; margin-top:15px;"></div>
            <{/if}>
          <{/foreach}>
          <{else}>
          	<div class="ctn_texttab">
              <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                  <td width="190" class="text_13">Position title</td>
                    <td class="text_13"><input type="text" name="title[]" id="title[]" class="input2010_300" value="" /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Company</td>
                    <td class="text_13_bg"><input type="text" name="company[]" id="company[]" class="input2010_300" value=""  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">Company website</td>
                    <td class="text_13"><input type="text" name="website[]" id="website[]" class="input2010_300" value=""  /></td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13_bg">Industry</td>
                    <td class="text_13_bg">
											<select name="industry_id[]" id="industry_id[]" class="select2010_300">
												<option value="-1"> -- Select Industry -- </option>
												<{foreach name=nameIndus key=keyIndus item=itemIndus from=$array_industry}>
													<option value="<{$itemIndus.id}>">&nbsp;&nbsp;&nbsp;<{$itemIndus.industry_name}></option>
												<{/foreach}>  
											</select>
										</td>
                </tr>
                 <tr>
                  <td colspan="2" height="10"></td>
                </tr>
                <tr>
                  <td width="190" class="text_13">From</td>
                  <td class="text_13">
                    <table cellpadding="0" cellspacing="0" border="0">
                      <tr>
                         <td align="left">
                          <select name="date_from_month[]" id="date_from_month[]" class="select2010_75">
                            <option value="00"> -- Month -- </option>
                            <{section name=foo start=1 loop=13 step=1}>
                              <option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                            <{/section}>  
                          </select>
                         </td>
                         <td width="5"></td>
                         <td align="left">
                            <select name="date_from_year[]" id="date_from_year[]" class="select2010_75">
                              <option value="0000"> -- Year -- </option>
                              <{section name=foo start=1940 loop=2010 step=1}>
                                <option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                              <{/section}>  
                            </select>
                         </td>
                         <td width="20"></td>
                         <td >to</td>
                         <td width="5"></td>
                         <td align="left">
                            <select name="date_to_month[]" id="date_to_month[]" class="select2010_75">
                              <option value="00"> -- Month -- </option>
                              <{section name=foo start=1 loop=13 step=1}>
                                <option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                              <{/section}>  
                            </select>
                        </td>
                         <td width="5"></td>
                        <td align="left">
                          <select name="date_to_year[]" id="date_to_year[]" class="select2010_75">
                            <option value="0000"> -- Year -- </option>
                            <{section name=foo start=1940 loop=2010 step=1}>
                              <option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option>
                            <{/section}> 
                          </select>
                         </td>
                       </tr>
                     </table>
                  </td>
                </tr>
              </table>
            </div>
          <{/if}>
        </div>
        
        <div class="ctn_texttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
              <td width="190" class="text_13"><a href="javascript:addAnotherJob()" class="link_add">Add another job</a></td>
              <td class="text_13">&nbsp;</td>
            </tr>
            <tr>
              <td colspan="2" height="10"></td>
            </tr>
            <tr>
              <td width="190" class="text_13">&nbsp;</td>
              <td class="text_13"><input type="submit" name="" class="btn_login2010" value="Save" /></td>
            </tr>
          </table>
        </div>
        </form>
			</div>
 		</div>
 	</div>
</div>
<script type="text/javascript">
	function checkFrmAddAnotherJob(p_objForm)
	{
		
	}
	
	function addAnotherJob()
	{
		var strAnotherJob = '<div style="height:2px; background-color:#FFD5AA; margin-top:15px;"></div><div class="ctn_texttab"><table cellpadding="0" cellspacing="0" border="0" width="100%"><tr><td width="190" class="text_13">Position title</td><td class="text_13"><input type="text" name="title[]" id="title[]" class="input2010_300"  /></td></tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13_bg">Company</td><td class="text_13_bg"><input type="text" name="company[]" id="company[]" class="input2010_300"  /></td></tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13">Company website</td><td class="text_13"><input type="text" name="website[]" id="website[]" class="input2010_300"  /></td> </tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13_bg">Industry</td><td class="text_13_bg"><select name="industry_id[]" id="industry_id[]" class="select2010_300"><option value="-1"> -- Select Industry -- </option><{foreach name=nameIndus key=keyIndus item=itemIndus from=$array_industry}><option value="<{$itemIndus.id}>">&nbsp;&nbsp;&nbsp;<{$itemIndus.industry_name}></option><{/foreach}></select></td></tr><tr><td colspan="2" height="10"></td></tr><tr><td width="190" class="text_13">From</td><td class="text_13"><table cellpadding="0" cellspacing="0" border="0"><tr><td align="left"><select name="date_from_month[]" id="date_from_month[]" class="select2010_75"> <option value="00"> -- Month -- </option><{section name=foo start=1 loop=13 step=1}><option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option><{/section}></select></td><td width="5"></td><td align="left"><select name="date_from_year[]" id="date_from_year[]" class="select2010_75"><option value="0000"> -- Year -- </option><{section name=foo start=1940 loop=2010 step=1}><option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option><{/section}></select></td><td width="20"></td><td >to</td><td width="5"></td><td align="left"><select name="date_to_month[]" id="date_to_month[]" class="select2010_75"><option value="00"> -- Month -- </option><{section name=foo start=1 loop=13 step=1}><option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option><{/section}></select></td><td width="5"></td><td align="left"><select name="date_to_year[]" id="date_to_year[]" class="select2010_75"><option value="0000"> -- Year -- </option><{section name=foo start=1940 loop=2010 step=1}><option value="<{$smarty.section.foo.index}>">&nbsp;&nbsp;&nbsp;<{$smarty.section.foo.index}></option><{/section}></select></td></tr></table></td></tr></table></div>';
			document.getElementById("id_profile_past_position").innerHTML = document.getElementById("id_profile_past_position").innerHTML + strAnotherJob;
	}
	
</script>